package cn.wolfcode.wolf2w.util;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class TravelCondition {

    //
    public static final Map<Integer,TravelCondition> DAY_MAP = new HashMap<>();

    public static final Map<Integer,TravelCondition> perExpendType_MAP = new HashMap<>();
    //初始化map对象，将dayType跟范围对象一一映射
    static{
        DAY_MAP.put(1,new TravelCondition(0,3));
        DAY_MAP.put(2,new TravelCondition(4,7));
        DAY_MAP.put(3,new TravelCondition(8,14));
        DAY_MAP.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        perExpendType_MAP.put(1,new TravelCondition(1,999));
        perExpendType_MAP.put(2,new TravelCondition(1000,6000));
        perExpendType_MAP.put(3,new TravelCondition(6000,200000));
        perExpendType_MAP.put(4,new TravelCondition(2000000,Integer.MAX_VALUE));

    }


    private Integer min;
    private Integer max;


    public TravelCondition(Integer min, Integer max) {
        this.min = min;
        this.max = max;
    }
}
